
// called on in 0_4_elections_csld_2014

// replace sldl with code generated in sldlcodes_gazeteer.xlsx

// merges with codes generated in sldlcodes.do, called on in 2_merge_election

replace sldl="1" if sldl=="Addison 1" & state=="Vermont"
replace sldl="2" if sldl=="Addison 2" & state=="Vermont"
replace sldl="3" if sldl=="Addison 3" & state=="Vermont"
replace sldl="4" if sldl=="Addison 4" & state=="Vermont"
replace sldl="5" if sldl=="Addison 5" & state=="Vermont"
replace sldl="6" if sldl=="Addison-Rutland" & state=="Vermont"
replace sldl="7" if sldl=="Bennington 1" & state=="Vermont"
replace sldl="8" if sldl=="Bennington 3" & state=="Vermont"
replace sldl="9" if sldl=="Bennington 4" & state=="Vermont"
replace sldl="10" if sldl=="Bennington-Rutland" & state=="Vermont"
replace sldl="11" if sldl=="Bennington 2-1" & state=="Vermont"
replace sldl="12" if sldl=="Bennington 2-2" & state=="Vermont"
replace sldl="13" if sldl=="Chittenden-1" & state=="Vermont"
replace sldl="14" if sldl=="Chittenden-2" & state=="Vermont"
replace sldl="15" if sldl=="Chittenden-3" & state=="Vermont"
replace sldl="16" if sldl=="Chittenden 10" & state=="Vermont"
replace sldl="17" if sldl=="Chittenden 4-1" & state=="Vermont"
replace sldl="18" if sldl=="Chittenden 4-2" & state=="Vermont"
replace sldl="19" if sldl=="Chittenden 5-1" & state=="Vermont"
replace sldl="20" if sldl=="Chittenden 5-2" & state=="Vermont"
replace sldl="21" if sldl=="Chittenden 6-1" & state=="Vermont"
replace sldl="22" if sldl=="Chittenden 6-2" & state=="Vermont"
replace sldl="23" if sldl=="Chittenden 6-3" & state=="Vermont"
replace sldl="24" if sldl=="Chittenden 6-4" & state=="Vermont"
replace sldl="25" if sldl=="Chittenden 6-5" & state=="Vermont"
replace sldl="26" if sldl=="Chittenden 6-6" & state=="Vermont"
replace sldl="27" if sldl=="Chittenden 6-7" & state=="Vermont"
replace sldl="28" if sldl=="Chittenden 7-1" & state=="Vermont"
replace sldl="29" if sldl=="Chittenden 7-2" & state=="Vermont"
replace sldl="30" if sldl=="Chittenden 7-3" & state=="Vermont"
replace sldl="31" if sldl=="Chittenden 7-4" & state=="Vermont"
replace sldl="32" if sldl=="Chittenden 8-1" & state=="Vermont"
replace sldl="33" if sldl=="Chittenden 8-2" & state=="Vermont"
replace sldl="34" if sldl=="Chittenden 8-3" & state=="Vermont"
replace sldl="35" if sldl=="Chittenden 9-1" & state=="Vermont"
replace sldl="36" if sldl=="Chittenden 9-2" & state=="Vermont"
replace sldl="37" if sldl=="Caledonia-1" & state=="Vermont"
replace sldl="38" if sldl=="Caledonia-2" & state=="Vermont"
replace sldl="39" if sldl=="Caledonia-3" & state=="Vermont"
replace sldl="40" if sldl=="Caledonia-4" & state=="Vermont"
replace sldl="41" if sldl=="Caledonia-Washington" & state=="Vermont"
replace sldl="42" if sldl=="Essex-Caledonia" & state=="Vermont"
replace sldl="43" if sldl=="Essex-Caledonia-Orleans" & state=="Vermont"
replace sldl="44" if sldl=="Franklin 1" & state=="Vermont"
replace sldl="45" if sldl=="Franklin 2" & state=="Vermont"
replace sldl="46" if sldl=="Franklin 4" & state=="Vermont"
replace sldl="47" if sldl=="Franklin 5" & state=="Vermont"
replace sldl="48" if sldl=="Franklin 6" & state=="Vermont"
replace sldl="49" if sldl=="Franklin 7" & state=="Vermont"
replace sldl="50" if sldl=="Franklin 3-1" & state=="Vermont"
replace sldl="51" if sldl=="Franklin 3-2" & state=="Vermont"
replace sldl="52" if sldl=="Grand Isle-Chittenden" & state=="Vermont"
replace sldl="53" if sldl=="Lamoille 1" & state=="Vermont"
replace sldl="54" if sldl=="Lamoille 2" & state=="Vermont"
replace sldl="55" if sldl=="Lamoille 3" & state=="Vermont"
replace sldl="56" if sldl=="Lamoille-Washington" & state=="Vermont"
replace sldl="57" if sldl=="Orange 1" & state=="Vermont"
replace sldl="58" if sldl=="Orange 2" & state=="Vermont"
replace sldl="59" if sldl=="Orange-Caledonia" & state=="Vermont"
replace sldl="60" if sldl=="Orleans-Lamoille" & state=="Vermont"
replace sldl="61" if sldl=="Orleans-Caledonia" & state=="Vermont"
replace sldl="62" if sldl=="Orleans 1" & state=="Vermont"
replace sldl="63" if sldl=="Orleans 2" & state=="Vermont"
replace sldl="64" if sldl=="Orange-Washington-Addi..." & state=="Vermont"
replace sldl="65" if sldl=="Rutland 1" & state=="Vermont"
replace sldl="66" if sldl=="Rutland 2" & state=="Vermont"
replace sldl="67" if sldl=="Rutland 3" & state=="Vermont"
replace sldl="68" if sldl=="Rutland 4" & state=="Vermont"
replace sldl="69" if sldl=="Rutland 6" & state=="Vermont"
replace sldl="70" if sldl=="Rutland-Bennington" & state=="Vermont"
replace sldl="71" if sldl=="Rutland-Windsor 1" & state=="Vermont"
replace sldl="72" if sldl=="Rutland 5-1" & state=="Vermont"
replace sldl="73" if sldl=="Rutland 5-2" & state=="Vermont"
replace sldl="74" if sldl=="Rutland 5-3" & state=="Vermont"
replace sldl="75" if sldl=="Rutland 5-4" & state=="Vermont"
replace sldl="76" if sldl=="Rutland-Windsor 2" & state=="Vermont"
replace sldl="77" if sldl=="Windham 1" & state=="Vermont"
replace sldl="78" if sldl=="Windham 3" & state=="Vermont"
replace sldl="79" if sldl=="Windham 4" & state=="Vermont"
replace sldl="80" if sldl=="Windham 5" & state=="Vermont"
replace sldl="81" if sldl=="Windham 6" & state=="Vermont"
replace sldl="82" if sldl=="Windham 2-1" & state=="Vermont"
replace sldl="83" if sldl=="Windham 2-2" & state=="Vermont"
replace sldl="84" if sldl=="Windham 2-3" & state=="Vermont"
replace sldl="85" if sldl=="Washington 1" & state=="Vermont"
replace sldl="86" if sldl=="Washington 2" & state=="Vermont"
replace sldl="87" if sldl=="Washington 3" & state=="Vermont"
replace sldl="88" if sldl=="Washington 4" & state=="Vermont"
replace sldl="89" if sldl=="Washington 5" & state=="Vermont"
replace sldl="90" if sldl=="Washington 6" & state=="Vermont"
replace sldl="91" if sldl=="Washington 7" & state=="Vermont"
replace sldl="92" if sldl=="Washington-Chittenden" & state=="Vermont"
replace sldl="93" if sldl=="Windham-Bennington-Win..." & state=="Vermont"
replace sldl="94" if sldl=="Windham-Bennington" & state=="Vermont"
replace sldl="95" if sldl=="Windsor 1" & state=="Vermont"
replace sldl="96" if sldl=="Windsor 2" & state=="Vermont"
replace sldl="97" if sldl=="Windsor 5" & state=="Vermont"
replace sldl="98" if sldl=="Windsor-Rutland" & state=="Vermont"
replace sldl="99" if sldl=="Windsor 3-1" & state=="Vermont"
replace sldl="100" if sldl=="Windsor 3-2" & state=="Vermont"
replace sldl="101" if sldl=="Windsor 4-1" & state=="Vermont"
replace sldl="102" if sldl=="Windsor 4-2" & state=="Vermont"
replace sldl="103" if sldl=="Windsor-Orange 1" & state=="Vermont"
replace sldl="104" if sldl=="Windsor-Orange 2" & state=="Vermont"
